<?php
date_default_timezone_set('UTC');

// remove the following line when in production mode
defined('YII_DEBUG') or define('YII_DEBUG', TRUE);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);

define('RESOURCE_PATH_WWW', dirname(__FILE__).DIRECTORY_SEPARATOR.'www');

// change the following paths if necessary
$yii=dirname(__FILE__).'/common/lib/framework/yii.php';
$config=dirname(__FILE__).'/frontend/protected/config/main.php';
$global=dirname(__FILE__).'/common/lib/global.php';
$constant=dirname(__FILE__).'/common/lib/constant.php';

//constant and define
$define = dirname(__FILE__) . '/common/define.php';

require_once($yii);
require_once($global);
require_once($constant);
require_once($define);

define('TOTAL_PHOTOS', 30);

Yii::createWebApplication($config)->run();